.class Lcom/example/m6wmr/IntegralExchangeGift$1;
.super Landroid/os/Handler;
.source "IntegralExchangeGift.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/IntegralExchangeGift;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/IntegralExchangeGift;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/IntegralExchangeGift;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    .line 123
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 17
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 127
    invoke-super/range {p0 .. p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 128
    move-object/from16 v0, p1

    iget v13, v0, Landroid/os/Message;->what:I

    packed-switch v13, :pswitch_data_0

    .line 239
    :cond_0
    :goto_0
    return-void

    .line 132
    :pswitch_0
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->getJsonString:Ljava/lang/String;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$5(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/lang/String;

    move-result-object v13

    const-string v14, ""

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-nez v13, :cond_0

    .line 138
    :try_start_0
    new-instance v8, Lorg/json/JSONObject;

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->getJsonString:Ljava/lang/String;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$5(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v8, v13}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 139
    .local v8, "jsonObject":Lorg/json/JSONObject;
    const-string v13, "msg"

    invoke-virtual {v8, v13}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v7

    .line 140
    .local v7, "jsonArray":Lorg/json/JSONArray;
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_1
    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v13

    if-lt v3, v13, :cond_1

    .line 160
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->h:Landroid/os/Handler;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$6(Lcom/example/m6wmr/IntegralExchangeGift;)Landroid/os/Handler;

    move-result-object v13

    const/4 v14, 0x4

    invoke-virtual {v13, v14}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 162
    .end local v3    # "i":I
    .end local v7    # "jsonArray":Lorg/json/JSONArray;
    .end local v8    # "jsonObject":Lorg/json/JSONObject;
    :catch_0
    move-exception v2

    .line 164
    .local v2, "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0

    .line 141
    .end local v2    # "e":Lorg/json/JSONException;
    .restart local v3    # "i":I
    .restart local v7    # "jsonArray":Lorg/json/JSONArray;
    .restart local v8    # "jsonObject":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    invoke-virtual {v7, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 143
    .local v9, "jsonObject2":Lorg/json/JSONObject;
    const-string v13, "id"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 144
    .local v4, "id":Ljava/lang/String;
    const-string v13, "score"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 145
    .local v10, "score":Ljava/lang/String;
    const-string v13, "stock"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 146
    .local v11, "stock":Ljava/lang/String;
    const-string v13, "title"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 147
    .local v12, "title":Ljava/lang/String;
    const-string v13, "img"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 149
    .local v5, "img":Ljava/lang/String;
    new-instance v1, Lbean/IntegralExchangeBean;

    invoke-direct {v1}, Lbean/IntegralExchangeBean;-><init>()V

    .line 150
    .local v1, "bean":Lbean/IntegralExchangeBean;
    invoke-virtual {v1, v4}, Lbean/IntegralExchangeBean;->setId(Ljava/lang/String;)V

    .line 151
    invoke-virtual {v1, v5}, Lbean/IntegralExchangeBean;->setImg(Ljava/lang/String;)V

    .line 152
    invoke-virtual {v1, v10}, Lbean/IntegralExchangeBean;->setScore(Ljava/lang/String;)V

    .line 153
    invoke-virtual {v1, v11}, Lbean/IntegralExchangeBean;->setStock(Ljava/lang/String;)V

    .line 154
    invoke-virtual {v1, v12}, Lbean/IntegralExchangeBean;->setTitle(Ljava/lang/String;)V

    .line 156
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->beans:Ljava/util/List;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$0(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/util/List;

    move-result-object v13

    invoke-interface {v13, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 140
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 171
    .end local v1    # "bean":Lbean/IntegralExchangeBean;
    .end local v3    # "i":I
    .end local v4    # "id":Ljava/lang/String;
    .end local v5    # "img":Ljava/lang/String;
    .end local v7    # "jsonArray":Lorg/json/JSONArray;
    .end local v8    # "jsonObject":Lorg/json/JSONObject;
    .end local v9    # "jsonObject2":Lorg/json/JSONObject;
    .end local v10    # "score":Ljava/lang/String;
    .end local v11    # "stock":Ljava/lang/String;
    .end local v12    # "title":Ljava/lang/String;
    :pswitch_1
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    invoke-virtual {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->waitlogin()V

    goto/16 :goto_0

    .line 177
    :pswitch_2
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->getJsonString:Ljava/lang/String;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$5(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/lang/String;

    move-result-object v13

    const-string v14, ""

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-nez v13, :cond_0

    .line 181
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->beans:Ljava/util/List;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$0(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/util/List;

    move-result-object v13

    invoke-interface {v13}, Ljava/util/List;->clear()V

    .line 185
    :try_start_2
    new-instance v8, Lorg/json/JSONObject;

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->getJsonString:Ljava/lang/String;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$5(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v8, v13}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 186
    .restart local v8    # "jsonObject":Lorg/json/JSONObject;
    const-string v13, "msg"

    invoke-virtual {v8, v13}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v7

    .line 187
    .restart local v7    # "jsonArray":Lorg/json/JSONArray;
    const/4 v3, 0x0

    .restart local v3    # "i":I
    :goto_2
    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v13

    if-lt v3, v13, :cond_2

    .line 208
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->h:Landroid/os/Handler;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$6(Lcom/example/m6wmr/IntegralExchangeGift;)Landroid/os/Handler;

    move-result-object v13

    const/4 v14, 0x4

    invoke-virtual {v13, v14}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1

    goto/16 :goto_0

    .line 210
    .end local v3    # "i":I
    .end local v7    # "jsonArray":Lorg/json/JSONArray;
    .end local v8    # "jsonObject":Lorg/json/JSONObject;
    :catch_1
    move-exception v2

    .line 212
    .restart local v2    # "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto/16 :goto_0

    .line 188
    .end local v2    # "e":Lorg/json/JSONException;
    .restart local v3    # "i":I
    .restart local v7    # "jsonArray":Lorg/json/JSONArray;
    .restart local v8    # "jsonObject":Lorg/json/JSONObject;
    :cond_2
    :try_start_3
    invoke-virtual {v7, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 190
    .restart local v9    # "jsonObject2":Lorg/json/JSONObject;
    const-string v13, "id"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 191
    .restart local v4    # "id":Ljava/lang/String;
    const-string v13, "score"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 192
    .restart local v10    # "score":Ljava/lang/String;
    const-string v13, "stock"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 193
    .restart local v11    # "stock":Ljava/lang/String;
    const-string v13, "title"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 194
    .restart local v12    # "title":Ljava/lang/String;
    const-string v13, "img"

    invoke-virtual {v9, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 196
    .restart local v5    # "img":Ljava/lang/String;
    new-instance v1, Lbean/IntegralExchangeBean;

    invoke-direct {v1}, Lbean/IntegralExchangeBean;-><init>()V

    .line 197
    .restart local v1    # "bean":Lbean/IntegralExchangeBean;
    invoke-virtual {v1, v4}, Lbean/IntegralExchangeBean;->setId(Ljava/lang/String;)V

    .line 198
    invoke-virtual {v1, v5}, Lbean/IntegralExchangeBean;->setImg(Ljava/lang/String;)V

    .line 199
    invoke-virtual {v1, v10}, Lbean/IntegralExchangeBean;->setScore(Ljava/lang/String;)V

    .line 200
    invoke-virtual {v1, v11}, Lbean/IntegralExchangeBean;->setStock(Ljava/lang/String;)V

    .line 201
    invoke-virtual {v1, v12}, Lbean/IntegralExchangeBean;->setTitle(Ljava/lang/String;)V

    .line 203
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->beans:Ljava/util/List;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$0(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/util/List;

    move-result-object v13

    invoke-interface {v13, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_1

    .line 187
    add-int/lit8 v3, v3, 0x1

    goto :goto_2

    .line 222
    .end local v1    # "bean":Lbean/IntegralExchangeBean;
    .end local v3    # "i":I
    .end local v4    # "id":Ljava/lang/String;
    .end local v5    # "img":Ljava/lang/String;
    .end local v7    # "jsonArray":Lorg/json/JSONArray;
    .end local v8    # "jsonObject":Lorg/json/JSONObject;
    .end local v9    # "jsonObject2":Lorg/json/JSONObject;
    .end local v10    # "score":Ljava/lang/String;
    .end local v11    # "stock":Ljava/lang/String;
    .end local v12    # "title":Ljava/lang/String;
    :pswitch_3
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    new-instance v14, Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    const/16 v16, 0x0

    invoke-direct/range {v14 .. v16}, Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;)V

    invoke-static {v13, v14}, Lcom/example/m6wmr/IntegralExchangeGift;->access$7(Lcom/example/m6wmr/IntegralExchangeGift;Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;)V

    .line 223
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->xlv_integral_exchange:Lcom/wmr/Lstview/XListView;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift;->access$8(Lcom/example/m6wmr/IntegralExchangeGift;)Lcom/wmr/Lstview/XListView;

    move-result-object v13

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift;->adapter:Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;
    invoke-static {v14}, Lcom/example/m6wmr/IntegralExchangeGift;->access$9(Lcom/example/m6wmr/IntegralExchangeGift;)Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;

    move-result-object v14

    invoke-virtual {v13, v14}, Lcom/wmr/Lstview/XListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto/16 :goto_0

    .line 229
    :pswitch_4
    new-instance v6, Landroid/content/Intent;

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    .line 230
    const-class v14, Lcom/example/m6wmr/LoginActivity;

    .line 229
    invoke-direct {v6, v13, v14}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 231
    .local v6, "intent":Landroid/content/Intent;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/IntegralExchangeGift$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift;

    const/16 v14, 0x64

    invoke-virtual {v13, v6, v14}, Lcom/example/m6wmr/IntegralExchangeGift;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_0

    .line 128
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
    .end packed-switch
.end method
